package com.flong.modules.utils;

import java.io.File;
import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

/**
 * 
 * @Description	TODO
 * @ClassName	XMLUtils
 * @Date		2017年3月1日 下午1:39:43
 * @Author		liangjilong
 * @Copyright (c) All Right Reserved , 2017.
 */
public class XMLUtils {
	
	
	public static String getSequenceContextByXml(){
		String path = XMLUtils.class.getClassLoader().getResource("config/sequence.xml").getPath();
		try {
			Document doc = Jsoup.parse(new File(path), "utf-8");
			return doc.select("sequence").html();//获取sequence节点内容
		} catch (IOException e) {
			e.printStackTrace();
		}
		return "";
	}
	 
	
 
}
